package com.liu.qqRobot.wm.job;

import com.liu.qqRobot.wm.service.SyncItemService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class SyncItemJob {

    @Resource
    private SyncItemService syncItemService;

    @Scheduled(cron = "0 0 12,23 * * ?")
    public void syncItem() {
        log.info("开始同步Warframe.market中可以获取到的物品");
        syncItemService.syncItem();
        log.info("结束同步Warframe.market中可以获取到的物品");
    }

    @Scheduled(cron = "0 0 12,23 * * ?")
    public void syncLich() {
        log.info("开始同步Warframe.market中可以获取到的赤毒物品");
        syncItemService.syncLich();
        log.info("结束同步Warframe.market中可以获取到的赤毒物品");
    }

    @Scheduled(cron = "0 0 12,23 * * ?")
    public void syncSister() {
        log.info("开始同步Warframe.market中可以获取到的信条物品");
        syncItemService.syncSister();
        log.info("结束同步Warframe.market中可以获取到的信条物品");
    }

    @Scheduled(cron = "0 0 12,23 * * ?")
    public void syncRiven() {
        log.info("开始同步Warframe.market中可以获取到的紫卡物品");
        syncItemService.syncRiven();
        log.info("结束同步Warframe.market中可以获取到的紫卡物品");
    }

}
